import Request from '@/utils/requset.js'
import {
	queryParams
} from '@/uni_modules/uv-ui-tools/libs/function/index.js'

let request = new Request().http
let uploadFile = new Request().upLoadFile
//全局定义请求头
export default {

	// 首页
	getIndex: (data) => {
		return request({
			url: 'api/index/index',
			method: "get",
			data: data,
		})
	},


	// 活动种类列表
	getCityList: (data) => {
		return request({
			url: `api/activity/getCityList`,
			method: "get",
			data
		})
	},

	// 活动列表
	activityList: (data) => {
		return request({
			url: `/api/activity/getActList`,
			method: "get",
			data
		})
	},
	// 活动详情
	getActDetails: (data) => {
		return request({
			url: `/api/activity/getActDetails`,
			method: "get",
			data
		})
	},
	// 活动支付
	activityPay: (data) => {
		return request({
			url: `/api/activity/pay`,
			method: "post",
			data
		})
	},
	// 实名认证
	userAuth: (data) => {
		return request({
			url: `/api/account/oauth/`,
			method: "post",
			data
		})
	},

	// 场地列表
	venueList: (data) => {
		return request({
			url: `/api/venue/list/`,
			method: "get",
			data
		})
	},

	// 获取手机号
	getPhone: (data) => {
		return request({
			url: `/api/user/getPhoneNumber`,
			method: "post",
			data
		})
	},
	// 获取openid
	getOpenid: (data) => {
		return request({
			url: `/api/user/getopenid/`,
			method: "post",
			data
		})
	},
	// 登录
	login: (data) => {
		return request({
			url: `api/user/login/`,
			method: "post",
			data
		})
	},
	getMyInfo: (data) => {
		return request({
			url: `/api/user/getPersonalInfo/`,
			method: "get",
			data
		})
	},
	saveMyInfo: (data) => {
		return request({
			url: `/api/account/saveMyInfo/`,
			method: "post",
			data
		})
	},
	joinUs: (data) => {
		return request({
			url: `/api/company/joinUs/`,
			method: "post",
			data
		})
	},
	getCategory: (data) => {
		return request({
			url: `/api/report/getCategory/`,
			method: "post",
			data
		})
	},
	savecollect: (data) => {
		return request({
			url: `/api/account/savecollect/`,
			method: "get",
			data
		})
	},
	mycollect: (data) => {
		return request({
			url: `/api/account/mycollect/`,
			method: "get",
			data
		})
	},
	myreport: (data) => {
		return request({
			url: `/api/account/myreport/`,
			method: "get",
			data
		})
	},
	getCompanyList: (data) => {
		return request({
			url: `/api/company/getCompanyList/`,
			method: "get",
			data
		})
	},
	getReportList: (data) => {
		return request({
			url: `/api/report/getReportList/`,
			method: "get",
			data
		})
	},
	getReportDetails: (data) => {
		return request({
			url: `/api/report/getReportDetails/`,
			method: "get",
			data
		})
	},
	companyDetails: (data) => {
		return request({
			url: `/api/company/details/`,
			method: "get",
			data
		})
	},
	checkExpired: (data) => {
		return request({
			url: `/api/member/checkExpired/`,
			method: "get",
			data
		})
	},
	savereport: (data) => {
		return request({
			url: `/api/report/savereport/`,
			method: "get",
			data
		})
	},


	addvipMember: (data) => {
		return request({
			url: `/api/member/info/`,
			method: "post",
			data
		})
	},
	vipPay: (data) => {
		return request({
			url: `/api/member/pay/`,
			method: "post",
			data
		})
	},

	pay: (data) => {
		return request({
			url: `/api/pay/pay/`,
			method: "post",
			data
		})
	},

	addorder: (data) => {
		return request({
			url: `/api/order/info/`,
			method: "post",
			data
		})
	},
	orderPay: (data) => {
		return request({
			url: `/api/order/pay/`,
			method: "post",
			data
		})
	},
	checkOrder: (data) => {
		return request({
			url: `/api/order/checkOrder/`,
			method: "get",
			data
		})
	},

	// 保存企业信息
	saveCompany: (data) => {
		return request({
			url: `/api/activity/saveCompany/`,
			method: "post",
			data
		})
	},

	orderlist: (data) => {
		return request({
			url: `/api/order/orderlist/`,
			method: "get",
			data
		})
		
	},


	register: (data) => {
		return request({
			url: `/api/user/reg/`,
			method: "post",
			data
		})
	},
	slideImage: (data) => {
		return request({
			url: `/api/index/slideImage/`,
			method: "post",
			data
		})
	},
	connect: (data) => {
		return request({
			url: `/api/company/connect/`,
			method: "get",
			data
		})
	},
	companySave: (data) => {
		return request({
			url: `/api/company/save/`,
			method: "post",
			data
		})
	},
	getCompanyProfile: (data) => {
		return request({
			url: `/api/company/getCompanyProfile/`,
			method: "get",
			data
		})
	},
	orderDetails: (data) => {
		return request({
			url: `/api/order/details/`,
			method: "get",
			data
		})
	},
	interfaceToMe: (data) => {
		return request({
			url: `/api/company/interfaceToMe/`,
			method: "get",
			data
		})
	},
	interfaceByMe: (data) => {
		return request({
			url: `/api/company/interfaceByMe/`,
			method: "get",
			data
		})
	},
	download: (data) => {
		return request({
			url: `/api/report/download/`,
			method: "get",
			data
		})
	},	
	
	
	//oss文件上传
	uploadImg: (data) => {
		return uploadFile(data)
	},







	//我的
}
/*
请求样式：
    自定义名字: function(data) {
        return request({
            url: "/banner", //请求头
            method:"GET", //请求方式 
            data: data,    //请求数据
            token: token, // 可传  
            hideLoading: false, //加载样式
        })
    },
*/